package vip.mtdp.usercenter.dal.dao;

import org.apache.ibatis.annotations.Param;
import vip.mtdp.mybatis.dal.dao.BaseMapper;
import vip.mtdp.usercenter.dal.domain.User;
import vip.mtdp.usercenter.dal.query.UserCond;

import java.util.List;


/**
 * 
 *
 * @Description 客户的帐号
 * @author wangguoqing
 * @date 2019-12-03 15:30:47
 *
 */
public interface UserMapper extends BaseMapper<Long, User, UserCond> {

    /**
     * 登录
     * @param userName
     * @param pwd
     * @return
     */
    public User login(@Param("userName")String userName, @Param("pwd")String pwd);

    /**
     * 根据客户id查询所有用户
     * @param partyId
     * @return
     */
    public List<User> getUserByPartyId(Long partyId);

    /**
     * 根据商户id查询所有用户
     * @param merchantId
     * @return
     */
    public List<User> getUserByMerchantId(Long merchantId);

    /**
     * 根据个人客户id查询所有用户
     * @param personId
     * @return
     */
    public List<User> getUserByPersonId(Long personId);

}
